package com.ssy.lingxi.after.sale.repository;

import com.ssy.lingxi.after.sale.entity.EvaluateDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * 售后评价
 * @author 伍将
 * @date 2020/9/1
 * @version 2.0.0
 */
public interface EvaluateRepository extends JpaRepository<EvaluateDO, Long>, JpaSpecificationExecutor<EvaluateDO> {

    /**
     * 根据售后id与售后类型获取售后评价
     * @author 伍将
     * @date 2020/9/3
     * @param afterSaleId:
     * @param afterSaleType:
     * @return com.ssy.lingxi.after.sale.entity.EvaluateDO
     **/
    EvaluateDO findByAfterSaleIdAndAfterSaleType(Long afterSaleId, Integer afterSaleType);
}
